﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AcadPosApp
{
    public partial class login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["msg"] != null)
            {
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Alert", string.Format("alert('{0}');", Session["msg"].ToString()), true);
                Session["msg"] = null;
            }
        }

        protected void LblRecuperarSenha_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Seguranca/RecuperarSenha.aspx");
        }

        protected void LoginAcadPos_LoggedIn(object sender, EventArgs e)
        {
            Session["mediaInstituicao"] = AcadPos.Bussiness.NGMatricula.retornaMedia();
        }
    }
}